.stats-wrapper {
  min-width: 1200px;
  min-height: 100vh;
  background-color: #09172c;
  background-image: url('./images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: auto;

  .stats-header {
    height: 90px;
    padding: 0 16px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    background-image: url('./images/bg-title.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    font-size: 16px;

    >div {
      flex: 1;
      display: flex;
      flex-flow: row wrap;
      align-items: center;
    }

    .header-text {
      justify-content: center;
      padding-bottom: 3px;
      font-size: 24px;
      text-shadow: 0 0 2px #ffffff;
    }

    .header-left {
      justify-content: center;
      position: relative;

      .btn-backend {
        position: absolute;
        left: 0;
        padding: 4px 16px;
        background-image: url('./images/btn-bg.jpg');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        font-size: 14px;
        cursor: pointer;
      }

      .date-time {
        padding-left: 30px;
      }
    }

    .weather {
      justify-content: flex-end;

      .alarm {
        color: #FF6100;
        display: flex;
        align-items: center;

        span {
          padding-left: 4px;
        }
      }

      .info {
        padding-left: 20px;
      }
    }
  }

  .stats-content {
    padding: 10px 16px;
    display: flex;

    .number {
      line-height: 30px;
      color: #38FDFF;
      font-size: 22px;
      font-family: "Lucida Console", Monaco, monospace;
      font-weight: bold;
      transform: scaleY(0.9);
    }

    .header {
      position: relative;
      height: 30px;
      display: flex;
      align-items: center;
      font-size: 16px;

      * {
        z-index: 1;
      }

      &::before {
        content: "";
        position: absolute;
        left: 16px;
        height: 100%;
        width: 50px;
        background-image: radial-gradient(closest-side, #2f75f199, #2f75f100);
        z-index: 0;
      }
    }

    .container {
      height: calc(100% - 30px);
    }

    .block-left {
      width: 28%;

      >div+div {
        margin-top: 20px;
      }

      .container {
        min-height: 138px;
        height: calc((100vh - 440px) / 4);
      }

      .left1 {
        .container {
          display: flex;
          justify-content: space-between;
          min-height: 60px;
          height: calc((100vh - 854px) / 4);

          .code-item {
            width: 24%;
            color: #689FF6;
            display: flex;
            flex-direction: column;
            align-items: center;

            .chart-box {
              width: 100%;
              height: calc(100% - 42px);
              padding-bottom: 10px;
            }
          }
        }
      }
      
      .left5 {
        .container {
          min-height: 156px;
          height: calc((100vh - 365px) / 4);
        }
      }
    }

    .block-center {
      width: calc(44% - 40px);
      padding: 0 20px;

      .center1 {
        position: relative;
        // min-height: 80px;
        // height: calc((100vh - 804px) / 3);
        // height: 80px;
        padding: 0;
        border-radius: 25px;
        display: flex;
        align-items: center;

        img {
          width: 72px;
        }

        .alarm-info {
          position: absolute;
          left: 66px;
          width: calc(100% - 66px);
          color: #8FBAFE;
          font-size: 16px;
        }
      }

      .center2 {
        min-height: 644px;
        height: calc((100% - 180px) * 0.8);

        .map {
          width: calc(100% - 50px);
          height: calc(100% - 50px);
        }
      }

      .center3 {
        display: flex;
        align-items: flex-end;
        justify-content: space-around;

        .count-item {
          position: relative;
          height: 100%;
          width: 22%;
          background-image: url('./images/bg-hexagon.png');
          background-size: contain;
          background-position: center bottom;
          background-repeat: no-repeat;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: flex-end;

          .count {
            color: #36CDE6;
            font-size: 34px;
            position: relative;
            bottom: 2%;
          }

          .unit {
            color: #36CDE6;
            font-size: 13px;
            position: relative;
            bottom: 2%;
          }

          .name {
            color: #E3EFFF;
            font-size: 16px;
            word-break: keep-all;
          }
        }

        .container {
          min-height: 176px;
          height: calc((100vh - 444px) / 3);
        }
      }
    }

    .block-right {
      width: 28%;

      >div+div {
        margin-top: 20px;
      }

      .right1 {
        .tabs-wrapper {
          .btn {
            display: inline-block;
            height: 20px;
            margin: 4px;
            padding: 0 6px 0 7px;
            border: 1px solid #0080A7;
            border-radius: 10px;
            line-height: 20px;
            font-size: 13px;
            color: #ffffff;
            background-color: rgba(15, 62, 176, 0.8);
          }
        }

        .loop-box {
          height: 60px;
          padding-top: 10px;
          display: flex;
          align-items: center;
          justify-content: space-evenly;
          text-align: center;

          .loop-item {
            flex: 1;
            position: relative;
            line-height: 20px;
            color: #689FF6;

            div {
              display: inline-block;
            }

            &:not(:last-child)::after {
              content: "";
              position: absolute;
              right: 0;
              width: 1px;
              height: 100%;
              background: linear-gradient(180deg, rgba(45, 116, 244, 0) 0%, #38FDFF 54%, rgba(45, 116, 244, 0) 100%);
            }
          }
        }

        .container {
          min-height: 192px;
          height: calc((100vh - 490px) / 3.9);
        }

        .chart-box {
          height: calc(100% - 60px);
        }
      }

      .right2 {
        .container {
          min-height: 170px;
          height: calc((100vh - 388px) * 0.28);
        }
      }

      .right3 {
        .container {
          min-height: 176px;
          height: calc((100vh - 354px) * 0.28);
        }

        .count-box {
          height: 40px;
          display: flex;
          align-items: center;
          justify-content: center;

          .count-item {
            display: flex;
            align-items: center;
            color: #689FF6;
            line-height: 30px;

            +.count-item {
              padding-left: 20px;
            }
          }
        }

        .ent-box {
          height: calc(100% - 40px);

          .list-header {
            display: flex;
            padding: 0 10px;
            background-color: #507ddd33;
            font-size: 12px;
            font-weight: bold;
          }

          .seamless-wrap {
            width: 100%;
            height: calc(100% - 30px);
            overflow: hidden;
            color: white;

            .list-content {
              display: flex;
              margin-top: 4px;
              padding: 0 10px;
              background-color: #507ddd00;
              font-size: 12px;
              cursor: default;

              &.content-odd {
                background-color: #507ddd22;
              }

              &.content-even {
                background-color: #507ddd11;
              }
            }
          }

          .header-item,
          .content-item {
            line-height: 30px;
            word-break: break-all;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }
  }

  .border-box {
    position: relative;
    padding: 4px 16px 10px;
    border: 1px solid #265bb8;
    border-radius: 16px;
    box-shadow: 0px 0px 38px 0px #0f3967 inset;
  }

  .tabs-wrapper {
    position: absolute;
    right: 0;

    .tab-box {
      display: inline-block;
      height: 20px;
      margin: 4px;
      padding: 0 6px 0 7px;
      background-color: rgba(0, 13, 94, 0.8);
      border: 1px solid #0080A7;
      border-radius: 0 0 0 10px;
      line-height: 20px;
      font-size: 13px;
      color: #dcdee2;
      cursor: pointer;

      &:hover,
      &.active {
        color: #ffffff;
        background-color: rgba(15, 62, 176, 0.8);
      }
    }
  }

  .no-data {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5c8ce;
  }
}